package com.liu.webstore.service;

import com.liu.webstore.entity.Message;

import java.util.List;

/**
 * @Author LiuYumei
 * @Date 2022/7/28 22:54
 */
public interface MessageService {
    List<Message> selectConversations(int userId, int offset, int limit);

    int selectConversationCount(int userId);

    List<Message> selectLetters(String conversationId, int offset, int limit);

    int selectLetterCount(String conversationId);

    int selectLetterUnreadCount(String conversationId, int userId);

    int selectSystemNoticeCount(int userId);

    List<Message> selectSystemNoticeList(int userId, int offert, int limit);

    int saveMessage(Message message);

    int readMessage(List<Integer> ids);

    int removeLetterDetial(int letterDetailId);

    Message findLatestNotice(int userId, String topic);

    int findNoticeCount(int userId, String topic);

    int findNoticeUnreadCount(int userId, String topic);

    List<Message> findNoticeList(int userId, String topic, int offset, int limit);
}
